'use strict';

// Setting up route
angular.module('groupManagement').config(['$stateProvider', '$urlRouterProvider',
	function($stateProvider, $urlRouterProvider) {

		// Redirect to home view when route not found
		$urlRouterProvider.otherwise('/');

		// GroupManagement state routing
		$stateProvider.
		state('groupManagementMain', {
			url: '/groupManagement/main',
			templateUrl: 'modules/groupManagement/views/groupMgmnt-main.client.view.html',
      authenticate:true
		}).
		state('createNewGroup', {
			url: '/groupManagement/create',
			templateUrl: 'modules/groupManagement/views/create-group.client.view.html',
      authenticate:true
		});
	}
]);